import {createRouter,createWebHashHistory} from 'vue-router'
import Home from '../components/Home.vue'
import List from '../components/List.vue'
import Add from '../components/Add.vue'
import Update from '../components/Update.vue'
import ShowParamDeatails from '../components/ShowRouteDetails.vue'
import ShowParamDeatails2 from '../components/ShowRouteDetails2.vue'

const route = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:'/showDetail2',
            components:{
                routeParam:ShowParamDeatails2
            }
        },
        {
            path:'/showParamDeatails/:id/:language',
            components:{
                routeParam:ShowParamDeatails
            }
        },
        {
            path:'/',
            component:Home
        },
        {
            path:'/home',
            component:Home
        },
        {
            path:'/list',
            component:List
        },
        {
            path:'/add',
            component:Add
        },
        {
            path:'/update',
            component:Update
        }
    ]

})


export default route